<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center weddingDetails_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub weddingDetails_fd0_0'>
          <view class='flex flex-wrap align-center weddingDetails_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  weddingDetails_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='weddingDetails_fd0_0_c1_c0'>婚纱详情</text>
          </view>
          <view class='flex flex-wrap align-center justify-end weddingDetails_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout weddingDetails_flex_1">
        <view style="position: relative">
          <swiper ref="benbenSwiperfd1_0" @change="bannerIndexfd1_0 = $event.detail.current"
            class='flex position-relative weddingDetails_fd1_0' previous-margin="0rpx" next-margin="0rpx"
            :display-multiple-items="1" :interval="5000" :duration="500" :autoplay='true' :circular='true'>

            <template v-for='(item,key0) in wedding_dress_image'>
              <swiper-item class='flex  weddingDetails_fd1_0' :key='key0'>
                <image class='weddingDetails_fd1_0_c1_c0' mode="aspectFill"
                  @click.stop="looKImage(wedding_dress_image,key0)" :src='item'></image>
                <text class='weddingDetails_fd1_0_c1_c1'>婚纱编号：{{info.wedding_dress_number}}</text>
              </swiper-item>
            </template>

          </swiper>
          <view style="position: absolute"
            class="flex dot flex align-center justify-center weddingDetails_swiperDotfd1_0">
            <view class='flex flex align-center justify-center weddingDetails_numberfd1_0_c0'>
              <text class='weddingDetails_numberfd1_0_c0_c0'>{{bannerIndexfd1_0+1}}</text>
              <text>/</text>
              <text>{{(wedding_dress_image.length)}}</text>
            </view>

          </view>
        </view>
        <!-- <view class='flex flex-wrap align-center weddingDetails_fd1_1'>
          <text class='weddingDetails_fd1_1_c0'>档期数</text>
          <text class='weddingDetails_fd1_1_c1'>{{info.schedule_count}}</text>
        </view> -->
        <view v-if="false" class='flex flex-direction flex-wrap align-stretch weddingDetails_fd1_2'
          v-for="(item,index) in dataList" :key="index">
          <view class='flex flex-wrap align-center flex-sub weddingDetails_fd1_2_c0'>
            <image class='weddingDetails_fd1_2_c0_c0' mode="aspectFit" :src='STATIC_URL+"151.png"'></image>
            <view class='flex flex-direction flex-wrap align-stretch weddingDetails_fd1_2_c0_c1'>
              <view class='flex flex-wrap align-center'>
                <text>{{item.customerinfo_customer_name}}</text>
                <image class='weddingDetails_fd1_2_c0_c1_c0_c1' v-if="item.customerinfo_customer_types==3"
                  mode="aspectFill" :src='STATIC_URL+"155.png"'></image>
                <image class='weddingDetails_fd1_2_c0_c1_c0_c1' v-if="item.customerinfo_customer_types==1"
                  mode="aspectFill" :src='STATIC_URL+"152.png"'></image>
                <image class='weddingDetails_fd1_2_c0_c1_c0_c1' v-if="item.customerinfo_customer_types==2"
                  mode="aspectFill" :src='STATIC_URL+"153.png"'></image>
                <image class='weddingDetails_fd1_2_c0_c1_c0_c1' mode="aspectFit"
                  v-if="item.customerinfo_customer_types==4" :src='STATIC_URL+"162.png"'></image>
              </view>
              <view class='flex flex-wrap align-center weddingDetails_fd1_2_c0_c1_c1'>
                <text>{{item.customerinfo_customer_phone}}</text>
              </view>
            </view>
          </view>
          <!-- <view class='flex flex-wrap align-center weddingDetails_fd1_2_c1'>
            <text class='weddingDetails_fd1_2_c1_c0'>婚期日期：</text>
            <text>{{item.customerinfo_date_time}}</text>
          </view> -->
          <!-- <view class='flex flex-wrap align-center weddingDetails_fd1_2_c1'>
            <text class='weddingDetails_fd1_2_c1_c0'>租赁档期：</text>
            <text>{{item.ben_time}} 至 {{item.end_time}}</text>
          </view> -->
        </view>
        <!-- <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty> -->
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  import pagingList from '@/common/mixin/paging_list.js';
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "bannerIndexfd1_0": 0,
        "wedding_dress_image": [],
        "aid": "",
        info: '',
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": [],
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      let {
        aid
      } = options
      if (aid !== undefined) this.aid = aid
      this.getCarouselMapFunc()
      this.getListFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {
      this.getCarouselMapFunc()
    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      looKImage(list, index) {
        uni.previewImage({
          urls: list,
          current: index
        })
      },
      getListFunc() {
        this.minixPagingListsApi = global.apiUrls.post666d6a33b485c;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          weddingdress_id: this.aid
        }
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      },
      //获取轮播图列表
      async getCarouselMapFunc() {
        //请求方法
        //数据验证

        let datacarouselMap = await this.$api.get(global.apiUrls.post666d69607928a, {
          aid: this.aid
        });

        if (datacarouselMap.data.code != 1) {
          this.$message.info(datacarouselMap.data.msg);
          return
        }
        let infocarouselMap = datacarouselMap.data;
        this.info = infocarouselMap.data
        this.wedding_dress_image = this.info.wedding_dress_image

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .weddingDetails_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .weddingDetails_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .weddingDetails_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .weddingDetails_fd0_0_c0 {
    width: 120rpx;
  }

  .weddingDetails_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .weddingDetails_flex_1 {
    padding: 24rpx 32rpx 0rpx 32rpx;
  }

  .weddingDetails_fd1_2_c1_c0 {
    color: rgba(170, 170, 170, 1);
  }

  .weddingDetails_fd1_2_c1 {
    font-size: 32rpx;
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .weddingDetails_fd1_2_c0_c1_c1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .weddingDetails_fd1_2_c0_c1_c0_c1 {
    width: 115rpx;
    height: 34rpx;
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .weddingDetails_fd1_2_c0_c1 {
    margin: 0rpx 0rpx 0rpx 24rpx;
    font-size: 32rpx;
    color: var(--benbenFontColor0);
    font-weight: 600;
  }

  .weddingDetails_fd1_2_c0_c0 {
    width: 67rpx;
    height: 62rpx;
  }

  .weddingDetails_fd1_2_c0 {
    border-bottom: 1px solid #eee;
    padding: 0rpx 0rpx 24rpx 0rpx;
  }

  .weddingDetails_fd1_2 {
    background: #FFFFFF;
    border-radius: 24rpx;
    width: 686rpx;
    padding: 34rpx 24rpx 24rpx 24rpx;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }

  .weddingDetails_fd1_1_c1 {
    font-size: 36rpx;
    font-weight: 600;
  }

  .weddingDetails_fd1_1_c0 {
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .weddingDetails_fd1_1 {
    padding: 37rpx 0rpx 37rpx 0rpx;
  }

  .weddingDetails_numberfd1_0_c0_c0 {
    font-size: 34rpx;
  }

  .weddingDetails_numberfd1_0_c0 {
    background: rgba(249, 228, 195, 1);
    position: absolute;
    bottom: 20rpx;
    right: 30rpx;
    width: 64rpx;
    height: 40rpx;
    border-radius: 44rpx;
    font-size: 24rpx;
    color: var(--benbenFontColor0);
    line-height: 40rpx;
    font-weight: 400;
  }

  .weddingDetails_fd1_0_c1_c1 {
    position: absolute;
    left: 24rpx;
    bottom: 32rpx;
    color: var(--benbenFontColor3);
    z-index: 9;
  }

  .weddingDetails_fd1_0_c1_c0 {
    width: 686rpx;
    height: 560rpx;
    border-radius: 16rpx;
  }

  .weddingDetails_fd1_0 {
    width: 686rpx;
    height: 560rpx;
  }

  .weddingDetails_swiperDotUnselectedfd1_0 {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.4);
    width: 20rpx;
    height: 4rpx;
    border-radius: 2rpx 2rpx 2rpx 2rpx;
    margin: 0rpx 6rpx 0rpx 0rpx;
    font-size: 24rpx;
    color: #fff;
  }

  .weddingDetails_swiperDotSelectedfd1_0 {
    border: 1px solid #00A7FF;
    background: rgba(255, 255, 255, 1);
    width: 20rpx;
    height: 4rpx;
    border-radius: 2rpx 2rpx 2rpx 2rpx;
    margin: 0rpx 6rpx 0rpx 0rpx;
    font-size: 24rpx;
    color: #fff;
  }

  ::v-deep .weddingDetails_swiperDotfd1_0 {
    position: absolute;
    bottom: 20rpx;
    left: 0rpx;
    right: 0rpx;
  }
</style>
